<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
  <head>    
    <title>患者主页</title>
	
 	<script type="text/javascript">
    	function changeAddForm() {
    		var sl = document.getElementById("idSel");
    		var sl2 = document.getElementById("monthSel");
    		if(sl.value == 1 || sl.value == 7) {		
    			sl2.disabled="disabled";
    		} else {
    			sl2.disabled="";
    		}
    	}
    </script>
  </head>
  
  <body> 
  	<jsp:include page="/common/head.jsp"></jsp:include>
	<jsp:include page="/common/navgate.jsp"></jsp:include>
	
	<div id="detail">
		<s:action name="PatientDetail" executeResult="true" />		
	</div>
	
	<div style="margin:20px 50px 0px 200px; border: dashed 1px  #777">	
		
		<s:action name="FormList" executeResult="false" />
			
		<form action="PatientFormAdd" method="post">
				<input type="hidden" name="patientId" value="${patientId}">
				<s:select name="formId" id="idSel" list="#request.formList.{?#this.formId < 8}" listKey="formId" listValue="formName" onchange="changeAddForm()"/>
				<s:select name="month" id="monthSel" list='#{0:"初次基线资料", 3:"3个月", 6:"6个月", 12:"12个月"}'  disabled="true"/>
				<input type="submit" value="添加资料" />
		</form>
		
		<s:action name="PatientFormList" executeResult="true"/>	
	</div>
	
	<jsp:include page="/common/foot.jsp"></jsp:include>
  </body>
</html>
